<template>
  <div id="">
      我是详情页面
      {{msg}}

  </div>
</template>
<script>
import {getDetail} from "@/API"
export default {
  name: "",
  data: () => ({
    id:"",
    distance:0,
    result:null,

  }),
  computed:{
      msg(){
        return this.$store.state.count;
      }
  },
  created() {
    console.log(this.$store)
    //do something after creating vue instance
    // this.id=this.$route.query.id;
    // this.distance=this.$route.query.distance;
    // getDetail(this.id).then(res=>{
    //   console.log(res)
    //   this.result=res.pois;
    // })
  }
}
</script>
<style lang="less" scoped>
</style>
